<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 我们可以按照需要编写tag函数的代码。下面是tag函数的一种写法，以及运行结果。
        let a = 5;
        let b = 10;

        function tag(s, v1, v2) {
            console.log(s[0]);
            console.log(s[1]);
            console.log(s[2]);
            console.log(v1);
            console.log(v2);

            return "OK";
        }

        tag `Hello ${ a + b } world ${ a * b}`;
        // "Hello "
        // " world "
        // ""
        // 15
        // 50
        // "OK"
    </script>
</body>

</html>